package com.example.demo.service.impl;

import com.example.demo.entity.AfshopCoupon;
import com.example.demo.mapper.AfshopCouponMapper;
import com.example.demo.service.IAfshopCouponService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 当前评价的次数表 服务实现类
 * </p>
 *
 * @author Mr.We
 * @since 2024-06-25
 */
@Service
public class AfshopCouponServiceImpl extends ServiceImpl<AfshopCouponMapper, AfshopCoupon> implements IAfshopCouponService {
    @Resource
    private AfshopCouponMapper afshopCouponMapper;

    @Override
    public AfshopCoupon queryObject(Integer couponId) {
        return afshopCouponMapper.queryObject(couponId);
    }

    @Override
    public List<AfshopCoupon> queryList(Map<String, Object> map) {
        return afshopCouponMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return afshopCouponMapper.queryTotal(map);
    }

    @Override
    public List<AfshopCoupon> queryUserCoupons(Map<String, Object> map) {
        return afshopCouponMapper.queryUserCoupons(map);
    }

    @Override
    public AfshopCoupon queryMaxUserEnableCoupon(Map<String, Object> map) {
        return afshopCouponMapper.queryMaxUserEnableCoupon(map);
    }

    @Override
    public List<AfshopCoupon> queryUserCouponList(Map<String, Object> map) {
        return afshopCouponMapper.queryUserCouponList(map);
    }
}
